package base.variable;

import java.util.Arrays;

public class DataType {
    public static void main(String[] args) {
        // value type
        int num = 18;
        char demo = 'y';
        float e = 2.71828f;
        double pi = 3.1415926;
        boolean ok = true;
        System.out.println("num = " + num + ", demo = " + demo + ", e = " + e + ", pi = " + pi + ", ok = " + ok);
        // reference type
        String name = "John";
        System.out.println("name = " + name);
        int[] array = { 1, 2, 3, 4, 5 };
        System.out.println("array = " + Arrays.toString(array));
    }
}
